from f42.extract import extract,extract_all
from cache_get import get,PATH
from os.path import join
from collections import defaultdict
from urllib.parse import unquote
URL = "http://www.jisilu.cn/people/list/page-%s"
max_page = 4527 
with open(join(PATH,"user_list.txt"),"w") as f:
    for i in range(1,max_page):
        print(max_page-i)
        html = get(URL%i)
        user_list = extract_all('class="aw-user-name">','<',html)
        for user in user_list:
            f.write("%s\n"%user)
        
